package cn.edu.nuc.ssm.service;

import cn.edu.nuc.ssm.entity.Admin;

import java.util.List;

/**
 * Created by Administrator on 2017/5/3.
 */
public interface AdminService {

    public Admin login(String username,String password);

    public Admin findById(Integer id);


    public int updatePasswordByid(Integer id,String password);

    public int insert(Admin admin);

    public Admin findbyUsername(Admin admin);

    public List<Admin> find();

    public int update(Admin admin);

    public int delete(int id);
}
